<template>
	<BaseContainer>
		<aplid-base-crud ref="crud" class="w-100" v-bind="options">
			<template v-slot:ArchivesDialog="{ row, show }">
				<Archives :api="baseConfig.api" :key="show" :nowRowData="row"></Archives>
			</template>
		</aplid-base-crud>
	</BaseContainer>
</template>

<script setup>
import { baseConfig } from '@/views/datacenter/basicData/serviceFacility/config'
import Archives from './Archives/index.vue'

const options = computed(() => {
	baseConfig.detailConfig.customeHeader.menuBtn = []
	return {
		...baseConfig,
    rowKey: 'recordUuid',
		api: {
			index: 'view_dpServiceFacilityFile_page',
		},
		auth: {
			index: 'view_dpServiceFacilityFile_page',
		},
    menuBtn: [
			{
				icon: 'editor',
				label: '查看档案',
				type: 'primary',
				operate: 'Archives',
				auth: '',
				text: true,
				show: true,
			},
		],
		menuAction: [],
		needPigeonhole: false,
		moreSearchConfig: undefined,
	}
})
</script>

<style lang="scss" scoped></style>
